﻿using System;
using System.Collections.Generic;
using Sisocana.Core.Models;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace SisocanaFronEnd.Models
{
    public class ReportMissingPersonViewModel
    {
        [DisplayName("First Name")]
        [Required(ErrorMessage = "First name required")]
        [StringLength(50, MinimumLength = 3, ErrorMessage = "The minimum length is 3 and the maximum length is 50")]
        public string nombre { get; set; }

        [DisplayName("Last Name")]
        [Required(ErrorMessage = "Last name required")]
        [StringLength(50, MinimumLength = 3, ErrorMessage = "The minimum length is 3 and the maximum length is 50")]
        public string apellido { get; set; }
        
        [UIHint("_FullMissingPersonList")]
        public IList<PersonaDesaparecidaFullModel> personas { get; set; }
    }
}